package com.ubs.training.server.service;

import com.ubs.training.prod.server.service.LoggingService;
import com.ubs.training.server.dao.ContactTypeDao;
import com.ubs.training.server.dao.model.ContactType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xubuntu
 * Date: 8/22/12
 * Time: 4:49 AM
 * To change this template use File | Settings | File Templates.
 */
@Service
public class ContactTypeService implements IContactTypeService{

    @Autowired
    @Qualifier ("ctpDao")

    ContactTypeDao ctpDao;



    public ContactTypeDao getCtpDao() {
        return ctpDao;
    }

    public void setCtpDao(ContactTypeDao ctpDao) {
        this.ctpDao = ctpDao;
    }

    @Override
    public List<ContactType> getAllContactType() {
        //log.logEvent("User request all contact type");
        return ctpDao.getAll();
    }




}
